<?
/*
 *  GGB - Gelin's Guest Book.
 *  Copyright (C) 2006  Denis Nelubin aka Gelin
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 *  http://gelin.ru
 *  mailto:den@gelin.ru
 *
 *  Description:    Third page of installation wizard, Admin Parameters.
 *
 *  History:
 *  2006-06-21  Gelin   Initially created.
 *  2008-08-02  Gelin   Now using $_SESSION, removed e-mail
 */

session_start();
$error = $_SESSION['error'];

$adminName = isset($_SESSION['adminName']) ? $_SESSION['adminName'] : 'admin';
$adminPassword = isset($_SESSION['adminPassword']) ? $_SESSION['adminPassword'] : '';

?>

<html>
<head>
    <title>Step 3 - Installation wizard - GGB</title>
</head>
<body>
    <h1>GGB - Installation wizard - Step 3 of 4</h1>
    <h2>Administrator information</h2>
    <font color="red"><?=$error?></font>
    <p>Please, define information about guestbook administrator below:</p>
    <form action="step3_action.php" method="POST">
    <p>
        Name: <input type="text" name="adminName" maxlength="255" value="<?=$adminName?>"/></br>
        Password: <input type="text" name="adminPassword" maxlength="255" value="<?=$adminPassword?>"/></br>
    </p>
    <p><input type="button" value="&lt;&lt;Back" onClick="javascript: window.location = 'step2.php'"/>
        <input type="submit" value="Finish&gt;&gt;"></p>
    </form>
</body>
</html>